<template>
  <div>
    <el-form ref="orderInfo" :model="orderData" label-width="120px" label-position="left">
      <el-form-item label="订单号">
        <el-tag type="success">{{ orderData.orderId }}</el-tag>
      </el-form-item>
      <el-form-item label="顾客信息">
        <el-tag type="success">{{ orderData.customerName }}</el-tag>
      </el-form-item>
      <el-form-item label="服务内容">
        {{ orderData.nurseContent }}
      </el-form-item>
      <el-form-item label="订单备注">
         {{ orderData.notes }}
      </el-form-item>
      <el-form-item label="订单金额">
        <el-tag>{{ orderData.totalAmount }}元</el-tag>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="payPass">支付成功</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import {updateOrder} from "@/api/business/order";

  export default {
    name: "createOrder",
    props: {
      orderData: {}
    },
    data() {
      return {
        activeName: 'first',
        nurseList:{},
        title: '通知办理入住',
        active: 0,
      }
    },
    created() {
      console.log(this.orderData);
    },
    methods: {
      payPass() {
        updateOrder(this.orderData).then(response => {
        })
        this.$emit('return-value',this.orderData.totalAmount);
      },
      // noPayPass() {
      //   this.$emit('return-value',this.orderData);
      // }
    }
  }
</script>

<style scoped>

</style>
